package com.itheima.day02.ZuoYe.ZuoYe_5;

import com.itheima.day02.ZuoYe.ZuoYe3_7.Person;

public class Student extends Peopless {
    private String id;
    private String classroom;

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", classroom='" + classroom + '\'' +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("吃营养餐");
    }
    public Student() {
    }

    public Student(String id, String classroom) {
        this.id = id;
        this.classroom = classroom;
    }

    public Student(String name, String sex, int age, String id, String classroom) {
        super(name, sex, age);
        this.id = id;
        this.classroom = classroom;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }
}
